package com.rankeiot.core.data.response;

import java.util.HashMap;
import java.util.Map;

/**
 * 基于Map的响应体
 *
 * @author desire
 */
public class MapResp extends Resp<Map> {
    public MapResp(Map m) {
        this.data = m;
    }

    public MapResp() {
        this.data = new HashMap();
    }

    public MapResp set(String key, Object v) {
        data.put(key, v);
        return this;
    }

    public MapResp remove(String key) {
        getData().remove(key);
        return this;
    }
}
